BeginFrameResponse

data class BeginFrameResponse(hasDamage: Boolean, screenshotData: String?)

Represents response frame that is returned from HeadlessExperimental#beginFrame operation call. Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a screenshot from the resulting frame. Requires that the target was created with enabled BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also https://goo.gl/3zHXhB for more background.

See also

Constructors

BeginFrameResponse
Link copied to clipboard
fun BeginFrameResponse(hasDamage: Boolean, screenshotData: String? = null)

Properties

hasDamage
Link copied to clipboard
val hasDamage: Boolean
Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the display.
screenshotData
Link copied to clipboard
val screenshotData: String? = null
Base64-encoded image data of the screenshot, if one was requested and successfully taken.

Sources

jvm source
Link copied to clipboard